package org.wisdom.ac.domain.resource.entity;

import java.util.List;

import javax.persistence.*;

import lombok.*;

/**
 * 页面元素-如按钮、列表等
 *
 * @author 张智研
 * @date 2023/04/23 09:41
 **/
@EqualsAndHashCode(callSuper = true)
@Entity
@DiscriminatorValue(value = "4")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
public class AcAppPageElement extends AcResource {
    /** 应用页面id */
    private String appPageId;

    /** 元素包含的应用接口 */
    @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL, orphanRemoval = true)
    @JoinColumn(name = "appPageElementId")
    private List<AcAppPageElementFacade> appPageElementFacades;
}
